/* vitepress layout */
.page>.container:first-child {
    max-width: unset !important;
    padding: 0 12.5rem 4rem 3rem !important;
}

@media only screen and (max-width: 992px) {
    .page>.container:first-child {
        padding: 0 1.5rem 4rem !important;
    }
}

:root {
    --font-family-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
    /*--c-brand: #646cff;*/
    /*--c-brand-light: #747bff;*/
    --code-bg-color: #f9fafb !important;
    --code-line-height: 24px;
    --code-font-size: 14px;
    --code-font-family: var(--font-family-mono);
}

code {
    font-family: var(--code-font-family);
    font-size: 0.85em;
    border-radius: 3px;
    margin: 0;
    padding: 2px 5px;
    color: #d56161 !important;
    background: #f6f7f9;
}

code .token.deleted {
    color: #ec5975 !important;
}

code .token.inserted {
    color: var(--c-brand) !important;
}

div[class*='language-'] {
    position: relative;
    margin: 1rem 0;
    background-color: var(--code-bg-color);
    border-radius: 1px;
    overflow-x: auto;
}

li>div[class*='language-'] {
    border-radius: 6px 0 0 6px;
    margin: 1rem -1.5rem 1rem -1.25rem;
}

[class*='language-'] code {
    color: #000 !important;
    padding: 0;
}

pre code {
    background: transparent;
}

[class*='language-'] pre,
[class*='language-'] code {
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

[class*='language-'] pre {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: transparent;
    overflow-x: auto;
}

[class*='language-'] code {
    padding: 0;
    line-height: var(--code-line-height);
    font-size: var(--code-font-size);
    color: #000 !important;
}

/* Line highlighting */
.highlight-lines {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem 0;
    width: 100%;
    line-height: var(--code-line-height);
    font-family: var(--code-font-family);
    font-size: var(--code-font-size);
    user-select: none;
    overflow: hidden;
}

.highlight-lines .highlighted {
    background-color: rgba(0, 0, 0, .66);
}

/* Line numbers mode */
div[class*='language-'].line-numbers-mode {
    padding-left: 3.5rem;
}

.line-numbers-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-right: 1px solid rgba(0, 0, 0, .5);
    width: 3.5rem;
    text-align: center;
    line-height: 1.5;
    font-size: 0.9em;
    padding: 1.3rem 0;
    background-color: #f6f6f6;
    color: #c4c4c6 !important;
    border-right: 1px solid #e7e6e6;
    z-index: 4;
}

/* Language marker */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: slategray !important;
}

.token.punctuation {
    color: #999 !important;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #905 !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #690 !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #9a6e3a !important;
    background: hsla(0, 0%, 100%, 0.5);
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #07a !important;
}

.token.function,
.token.class-name {
    color: #dd4a68 !important;
}

.token.regex,
.token.important,
.token.variable {
    color: #e90 !important;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* vitepress */
.home-hero .image {
    width: 200px;
    height: 200px;
}

.nav-bar .logo {
    height: 30px;
    margin-right: 2px;
}

.custom-block.tip {
    border-color: var(--c-brand-light) !important;
}

.DocSearch {
    --docsearch-primary-color: var(--c-brand) !important;
}

/* icon-caret */
.icon-caret-down {
    width: 16px;
    height: 100%;
    position: relative;
}

.icon-caret-down::before {
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top: 7.5px solid;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -2.5px;
    margin-left: -6px;
}

.icon-caret-up {
    width: 16px;
    height: 100%;
    position: relative;
}

.icon-caret-up::before {
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-bottom: 7px solid;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8.5px;
    margin-left: -6px;
}


/* 下面是自己的样式 */
:root {
    --vp-c-brand: #646cff;
    --vp-c-brand-light: #747bff;
    --code-bg-color: #292d3e !important;
    --code-line-height: 26px !important;
}

[class*='language-'] code {
    color: #A6ACCD !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    background: rgba(0, 0, 0, 0) !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #690 !important;
}
.token.number{
    color: #778759 !important;
}